import { simple } from '@/api/hmmm/directorys'
const state = {
  directorySimpleList: []
}

const mutations = {
  setSimpleList (state, data) {
    state.directorySimpleList = data
  }
}

const actions = {
  async getDirectorySimpleList (context) {
    const { data } = await simple()
    console.log(data)
    context.commit('setSimpleList', data)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
